home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / Pdmod / modules / socket / inetd.m < prev    next >
Encoding:
Text File  |  2002-10-28  |  2.0 KB  |  71 lines

  1. /* 
  2.  *      $Filename: inetd.h $
  3.  *      $Release$
  4.  *      $Revision: 1.1 $
  5.  *      $Date: 1993/08/12 08:19:34 $
  6.  *
  7.  * Internet daemon interface definitions
  8.  *
  9.  * Copyright © 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
  10.  *                  Helsinki University of Technology, Finland.
  11.  *                  All rights reserved.
  12.  *
  13.  * Author: ppessi <Pekka.Pessi@hut.fi>
  14.  *
  15.  * $Id: inetd.h,v 1.1 1993/08/12 08:19:34 jraja Exp $
  16.  *
  17.  * $Log: inetd.h,v $
  18.  * Revision 1.1  1993/08/12  08:19:34  jraja
  19.  * Initial revision
  20.  *
  21.  * Revision 1.3  1993/06/03  20:12:30  ppessi
  22.  * Changed the daemon naming scheme, removed template from inetd.conf
  23.  *
  24.  * Revision 1.2  93/05/28  20:13:47  ppessi
  25.  * Added Segment pointer to the DaemonMessage.
  26.  * 
  27.  * Revision 1.1  93/05/24  21:42:54  ppessi
  28.  * Initial revision
  29.  */
  30.  
  31. MODULE 'exec/ports','dos/dosextens'
  32.  
  33. /* 
  34.  * The DaemonPort structure and its associated memory
  35.  * must be allocated with AllocVec call 
  36.  */
  37. OBJECT DaemonPort
  38.     Port:MsgPort,
  39.     ExitCode
  40.  
  41.  
  42. #define DAEMONPORTNAME 'inetd.ipc'
  43.  
  44. /*
  45.  * A message associated with each launched process 
  46.  */
  47. OBJECT DaemonMessage
  48.     Msg:Message,        /* Message name is FreeVec()'ed by inetd */
  49.     Pid:PTR TO Process,        /* set by the launcher */
  50.     Seg:PTR TO Segment,        /* used only if resident segment */
  51.     Id:LONG,         /* socket id */
  52.     Retval:LONG,     /* non-zero errorcode */
  53.     Family:UBYTE,     /* address/protocol family */
  54.     Type
  55.  
  56.  
  57. /* Daemon types, used as socket types */
  58. #define DMTYPE_UNKNOWN   -1
  59. #define DMTYPE_INTERNAL  0              /* type is within builtin struct */
  60. #define DMTYPE_STREAM    SOCK_STREAM    /* stream socket */
  61. #define DMTYPE_DGRAM     SOCK_DGRAM     /* datagram socket */
  62. #define DMTYPE_RAW       SOCK_RAW       /* raw-protocol interface */
  63. #define DMTYPE_RDM       SOCK_RDM       /* reliably-delivered message */
  64. #define DMTYPE_SEQPACKET SOCK_SEQPACKET /* sequenced packet stream */
  65.  
  66. /* Return values from the startup code */
  67. #define DERR_LIB    $A0
  68. #define DERR_OBTAIN $A1
  69.  
  70.  
  71.